package com.kevin.springcloud.service;

import com.kevin.springcloud.entities.CommonResult;
import com.kevin.springcloud.entities.Payment;
import lombok.val;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xijinlong
 * @date 2020-08-26 17:53
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE" )
public interface PaymentService {

    /**
     * 查询
     * @param id
     * @return
     */
    @GetMapping("/payment/get/{id}")
    public CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);

}
